
    import React from 'react'
import useModal from '../自定义Hook'
    const UseCustomHookB = ()=>{
        let [modal,method] = useModal()
        return(
            <fieldset>
                <legend>另一个组件复用hook</legend>
                {modal}
                <button onClick ={method.showModal}>点击切换</button>
            </fieldset>
        )
    }
    export default UseCustomHookB